package com.centersoft.flowable.db.task.convert;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.centersoft.flowable.core.model.FlowAssigneeModel;
import com.centersoft.flowable.core.model.FlowButtonModel;
import com.centersoft.flowable.db.task.entity.FlowAssigneeEntity;
import com.centersoft.flowable.db.task.entity.FlowButtonsEntity;
import org.apache.commons.lang3.StringUtils;

import java.util.Arrays;

public class FlowButtonsConvert {

    public static FlowButtonModel toModel(FlowButtonsEntity entity) {
        FlowButtonModel flowButtonModel = new FlowButtonModel();
        flowButtonModel.setId(entity.getId());
        flowButtonModel.setName(entity.getName());
        flowButtonModel.setCode(entity.getCode());
        flowButtonModel.setIsHide(entity.getIsHide());
        flowButtonModel.setNext(entity.getNext());
        flowButtonModel.setSort(entity.getSort());
        return flowButtonModel;

    }
}
